package com.heima.apis.admin;

import com.heima.model.admin.dtos.SensitiveDto;
import com.heima.model.admin.pojos.AdSensitive;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.web.bind.annotation.*;

/**
 * @author feihao
 * @version 1.0
 * @date 2021/7/22 10:57
 */
public interface AdSensitiveController {
    @PostMapping("save")
    ResponseResult saveSensitive(@RequestBody AdSensitive adSensitive);

    @PostMapping("list")
    ResponseResult findByName(@RequestBody SensitiveDto sensitiveDto);

    @PutMapping("update")
    ResponseResult update(@RequestBody AdSensitive adSensitive);

    @DeleteMapping("delete/{id}")
    ResponseResult deleteById(@PathVariable("id") Integer id);
}
